<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KdTreeIndexCreator类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KdTreeIndexCreator类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Creates a FLANN KdTreeSingleIndex from the given input data.  
 <a href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="flann__search_8h_source.html">flann_search.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KdTreeIndexCreator 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.png" usemap="#pcl::search::FlannSearch_3C_20PointT_2C_20FlannDistance_20_3E::KdTreeIndexCreator_map" alt=""/>
  <map id="pcl::search::FlannSearch_3C_20PointT_2C_20FlannDistance_20_3E::KdTreeIndexCreator_map" name="pcl::search::FlannSearch_3C_20PointT_2C_20FlannDistance_20_3E::KdTreeIndexCreator_map">
<area href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html" title="Helper class that creates a FLANN index from a given FLANN matrix. To use a FLANN index type with Fla..." alt="pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::FlannIndexCreator" shape="rect" coords="0,0,422,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a52c22b3d099ba2e2b831cdecbef44ea0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html#a52c22b3d099ba2e2b831cdecbef44ea0">KdTreeIndexCreator</a> (unsigned int max_leaf_size=15)</td></tr>
<tr class="separator:a52c22b3d099ba2e2b831cdecbef44ea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dc4f021927184e5b8e4bc07349490e7"><td class="memItemLeft" align="right" valign="top"><a id="a0dc4f021927184e5b8e4bc07349490e7"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html#a0dc4f021927184e5b8e4bc07349490e7">~KdTreeIndexCreator</a> ()</td></tr>
<tr class="memdesc:a0dc4f021927184e5b8e4bc07349490e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty destructor <br /></td></tr>
<tr class="separator:a0dc4f021927184e5b8e4bc07349490e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23f84ccc1d536103bf6461ff1d18ed5c"><td class="memItemLeft" align="right" valign="top">virtual IndexPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html#a23f84ccc1d536103bf6461ff1d18ed5c">createIndex</a> (MatrixConstPtr data)</td></tr>
<tr class="memdesc:a23f84ccc1d536103bf6461ff1d18ed5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a FLANN Index from the input data.  <a href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html#a23f84ccc1d536103bf6461ff1d18ed5c">更多...</a><br /></td></tr>
<tr class="separator:a23f84ccc1d536103bf6461ff1d18ed5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html">pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::FlannIndexCreator</a></td></tr>
<tr class="memitem:ae4c6c8d683f1bea217ea6d19bbcdb291 inherit pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td class="memItemLeft" align="right" valign="top"><a id="ae4c6c8d683f1bea217ea6d19bbcdb291"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html#ae4c6c8d683f1bea217ea6d19bbcdb291">~FlannIndexCreator</a> ()</td></tr>
<tr class="memdesc:ae4c6c8d683f1bea217ea6d19bbcdb291 inherit pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td class="mdescLeft">&#160;</td><td class="mdescRight">destructor <br /></td></tr>
<tr class="separator:ae4c6c8d683f1bea217ea6d19bbcdb291 inherit pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a04fb446ace5827c5b127af9db3c7c28c"><td class="memItemLeft" align="right" valign="top"><a id="a04fb446ace5827c5b127af9db3c7c28c"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>max_leaf_size_</b></td></tr>
<tr class="separator:a04fb446ace5827c5b127af9db3c7c28c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT, typename FlannDistance = flann::L2_Simple &lt;float&gt;&gt;<br />
class pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KdTreeIndexCreator</h3>

<p>Creates a FLANN KdTreeSingleIndex from the given input data. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a52c22b3d099ba2e2b831cdecbef44ea0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52c22b3d099ba2e2b831cdecbef44ea0">&#9670;&nbsp;</a></span>KdTreeIndexCreator()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT , typename FlannDistance  = flann::L2_Simple &lt;float&gt;&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1search_1_1_flann_search.html">pcl::search::FlannSearch</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>, FlannDistance &gt;::KdTreeIndexCreator::KdTreeIndexCreator </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>max_leaf_size</em> = <code>15</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">max_leaf_size</td><td>All FLANN kd trees created by this class will have a maximum of max_leaf_size points per leaf node. Higher values make index creation cheaper, but search more costly (and the other way around). </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;: max_leaf_size_ (max_leaf_size){}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a23f84ccc1d536103bf6461ff1d18ed5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23f84ccc1d536103bf6461ff1d18ed5c">&#9670;&nbsp;</a></span>createIndex()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT , typename FlannDistance &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1search_1_1_flann_search.html">pcl::search::FlannSearch</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>, FlannDistance &gt;::IndexPtr <a class="el" href="classpcl_1_1search_1_1_flann_search.html">pcl::search::FlannSearch</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>, FlannDistance &gt;::KdTreeIndexCreator::createIndex </td>
          <td>(</td>
          <td class="paramtype">MatrixConstPtr&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a FLANN Index from the input data. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>The FLANN matrix containing the input. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>The FLANN index. </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html#aa3caf91a33391513e1a61fd0edf6aae6">pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::FlannIndexCreator</a>.</p>
<div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keywordflow">return</span> (IndexPtr (<span class="keyword">new</span> flann::KDTreeSingleIndex&lt;FlannDistance&gt; (*data,flann::KDTreeSingleIndexParams (max_leaf_size_))));</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>search/include/pcl/search/<a class="el" href="flann__search_8h_source.html">flann_search.h</a></li>
<li>search/include/pcl/search/impl/<a class="el" href="flann__search_8hpp_source.html">flann_search.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>search</b></li><li class="navelem"><a class="el" href="classpcl_1_1search_1_1_flann_search.html">FlannSearch</a></li><li class="navelem"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_kd_tree_index_creator.html">KdTreeIndexCreator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
